package com.hcf.admin.common.convention.exception;

import com.hcf.admin.common.convention.errorcode.BaseErrorCode;
import com.hcf.admin.common.convention.errorcode.IErrorCode;

public class ServiceException extends AbstractException{
    public ServiceException(IErrorCode code){
        this(code, null, null);
    }
    
    public ServiceException(IErrorCode code, String message){
        this(code, null, message);
    }
    
    public ServiceException(String message) {
        this(BaseErrorCode.SERVICE_ERROR, null, message);
    }
    
    public ServiceException(IErrorCode code, Throwable throwable, String message) {
        super(code, throwable, message);
    }
}
